package cn.fyl.org.mapper;

import cn.fyl.basic.mapper.BaseMapper;
import cn.fyl.org.domain.Employee;
import cn.fyl.system.domain.Menu;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    void saveEmployeeRole(@Param("eid") Long id,@Param("rid") Long role_id);

    void removeEmployeeRoleByEmployeeId(Long id);
    List<String> loadPermissionsByLogininfoId(Long id);

    List<Menu> loadMenusByLogininfoId(Long id);

    Employee loadByLogininfoId(Long id);


    List<Employee> findByShopId(Long id);
}
